package com.it.park.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.it.park.client.service.ArticleCollectService;
import com.it.park.dao.ArticleCollectMapper;
import com.it.park.model.ArticleCollect;

@Service("collectService")
public class ArticleCollectServiceImpl extends BaseServiceImpl<ArticleCollect> implements ArticleCollectService {
	
	@Autowired
	private ArticleCollectMapper articleCollectMapper;

	@Override
	public boolean insert(ArticleCollect collect) {
		return articleCollectMapper.insert(collect)==1 ;
	}
	@Override
	public List<ArticleCollect> list(Integer id) {
		return articleCollectMapper.list(id);
	}
	@Override
	public boolean deleteById(Integer id) {
			return articleCollectMapper.deleteById(id) == 1;
	}
	@Override
	public ArticleCollect selectIsExists(ArticleCollect record) {
		return articleCollectMapper.selectIsExists(record);
	}


}
